package com.cleaningcloud.cld.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 进项抵扣对象 cld_input_deduction
 * 
 * @author cleaningcloud
 * @date 2025-04-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldInputDeduction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进项抵扣ID */
    private Long inputDeductionId;

    /** 发票号码 */
    @Excel(name = "发票号码")
    private String deductionNo;

    /** 发票类型 */
    @Excel(name = "发票类型")
    private Long invoiceType;

    /** 发票时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发票时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date invoiceTime;

    /** 销方名称 */
    @Excel(name = "销方名称")
    private String saleName;

    /** 销方识别号 */
    @Excel(name = "销方识别号")
    private String saleIdentification;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal deductionAmount;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal deductionTax;

    /** 税额 */
    @Excel(name = "税额")
    private BigDecimal deductionTaxAmount;

    /** 抵扣状态(0未抵扣1已抵扣) */
    @Excel(name = "抵扣状态(0未抵扣1已抵扣)")
    private Long deductionStatus;

    /** 抵扣(年) */
    @Excel(name = "抵扣(年)")
    private Long deductionYear;

    /** 抵扣(月) */
    @Excel(name = "抵扣(月)")
    private Long deductionMonth;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createId;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 备注是否关闭 */
    @Excel(name = "备注是否关闭")
    private Long flag;


    // 进项抵扣ID组
    private String inputDeductionIds;
}
